﻿using System;
using System.Collections.Generic;

namespace Mbs
{
    /// <summary>
    /// MVP 模式中的Presenter接口
    /// </summary>
    public interface IPresenter : IDisposeCollector,IInitializable
    {
        /// <summary>
        /// 订阅消息总线上的消息
        /// </summary>
        /// <returns></returns>
        IEnumerator<IDisposable> Subscribe();

        /// <summary>
        /// View 
        /// </summary>
        IView View { get; }

        /// <summary>
        /// 服务定位器
        /// </summary>
        IServiceLocator Locator { get; }
    }
}